<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
	</head>
	<body>
		<script>
			//arguments 伪类数组
			function add(){
				console.log(arguments);
				var num = 0
				for(var i = 0;i<arguments.length;i++){
					num +=arguments[i]
				}
				return num
			}
			alert(add(1,2));
			alert(add(1,2,3));
			alert(add(1,2,3,4));
			alert(add(1,2,3,4,5));
		</script>
		<script type="text/javascript">
			function add2(){
				console.log(arguments);	
				alert(arguments.callee);
			}
			add2(1,2);
		</script>
	</body>
</html>
